const creditExtension = () => import('@/views/auditModel/creditExtension/index.vue')
const disburse = () => import('@/views/auditModel/disburse/index.vue')
const offline = () => import('@/views/auditModel/offline/index.vue')
const offlineDetail = () => import('@/views/auditModel/offline/detail/index.vue')
const auditModel = () => import('@/views/auditModel/index.vue')
const applyPreliminary = () => import('@/views/auditModel/creditExtension/components/Preliminary.vue')
const applyAgain = () => import('@/views/auditModel/creditExtension/components/Again.vue')
const creditExtensionDetail = () => import('@/views/auditModel/creditExtension/detail/index.vue')
const DisbursePreliminary = () => import('@/views/auditModel/disburse/components/Preliminary.vue')
const DisburseAgain = () => import('@/views/auditModel/disburse/components/Again.vue')
const disburseDetail = () => import('@/views/auditModel/disburse/detail/index.vue')
const creditExtensionRecord = () => import('@/views/auditModel/creditExtensionRecord/index.vue')
const creditExtensionRecordDetail = () => import('@/views/auditModel/creditExtensionRecord/detail/index.vue')
const platformAudit = () => import('@/views/auditModel/platformAudit/index.vue')
const platformAuditDetail = () => import('@/views/auditModel/platformAudit/detail/index.vue')
const disburseRecord = () => import('@/views/auditModel/disburseRecord/index.vue')
const disburseRecordDetail = () => import('@/views/auditModel/disburseRecord/detail/index.vue')

export default {
  path: 'audit-model',
  name: 'auditModel',
  component: auditModel,
  children: [
    {
      path: 'credit-extension',
      name: 'creditExtension',
      component: creditExtension,
      // redirect: '/audit-model/credit-extension/apply-preliminary',
      children: [
        {
          path: 'apply-preliminary',
          name: 'ApplyPreliminary',
          component: applyPreliminary,
          meta: { title: '授信申请' },
        },
        { path: 'apply-again', name: 'ApplyAgain', component: applyAgain },
      ],
    },
    {
      path: 'credit-extension-detail',
      name: 'creditExtensionDetail',
      component: creditExtensionDetail,
      meta: { title: '详情' },
    },
    {
      path: 'disburse',
      name: 'disburse',
      component: disburse,
      // redirect: '/audit-model/disburse/disburse-preliminary',
      children: [
        {
          path: 'disburse-preliminary',
          name: 'DisbursePreliminary',
          component: DisbursePreliminary,
          meta: { title: '支用审核' },
        },
        { path: 'disburse-again', name: 'DisburseAgain', component: DisburseAgain },
      ],
    },
    { path: 'disburse-detail', name: 'disburseDetail', component: disburseDetail, meta: { title: '详情' } },
    { path: 'offline', name: 'offline', component: offline, meta: { title: '线下签约' } },
    { path: 'offline-detail', name: 'offlineDetail', component: offlineDetail, meta: { title: '详情' } },
    {
      path: 'credit-extension-record',
      name: 'creditExtensionRecord',
      component: creditExtensionRecord,
      meta: { title: '授信记录' },
    },
    {
      path: 'credit-extension-record-detail',
      name: 'creditExtensionRecordDetail',
      component: creditExtensionRecordDetail,
      meta: {
        title: '详情',
      },
    },
    {
      path: 'platform-audit',
      name: 'platformAudit',
      component: platformAudit,
      meta: { title: '平台审核' },
    },
    {
      path: 'platform-audit-detail',
      name: 'platformAuditDetail',
      component: platformAuditDetail,
      meta: {
        title: '详情',
      },
    },
    {
      path: 'disburse-record',
      name: 'disburseRecord',
      component: disburseRecord,
      meta: {
        title: '支用记录',
      },
    },
    {
      path: 'disburse-record-detail',
      name: 'disburseRecordDetail',
      component: disburseRecordDetail,
      meta: {
        title: '详情',
      },
    },
  ],
}
